;; Command-Line Interface Functions for P System Program
;;
;; Copyright 2011:
;; James McDermott <jamesmichaelmcdermott@gmail.com>
;; Mark Wagy <mark.wagy@gmail.com>
;;
;; This file is part of p-gen, a p-systems and evolutionary system
;; written in Clojure.
;;
;; p-gen is licensed under GNU GPL v3.
;;
;; http://code.google.com/p/p-gen/

(ns psystem.cli (:use psystem.psys))


;; prompt to enter something 
;; (defn prompt-read [prompt]
;;   (print (format "%s: " prompt))
;;   (flush)
;;   (read-line))

;; ;; utility function to read a yes or no answer as boolean
;; (defn y-or-n-p [prompt]
;;   (= "y" (prompt-read prompt)))

;; ;; save something to file
;; (defn save-to-file [stuff filename]
;;       (spit filename (pr-str stuff)))

;; ;; load something from file
;; (defn load-from-file [filename]
;;   (read-string (slurp filename)))
